package pl.edu.agh.neurony.logic;

import pl.edu.agh.neurony.exceptions.BadNeuronInitiationException;
import pl.edu.agh.neurony.logic.activationFunctions.ReturnInputFunc;

public class InputNeuron extends Neuron {

	public InputNeuron(int layerNr) {
		super(layerNr);
		activationFunction = new ReturnInputFunc();
	}
	
	@Override
	public double calculateOutput() throws BadNeuronInitiationException {
		return activationFunction.run(output);
	}
	
	@Override
	public Connection connectInputNeuron(Neuron neuron) {
		// TODO LOG
		return null;
	}
	
	@Override
	public void connectInputNeuron(Neuron neuron, Connection connection) {
		// TODO LOG
	}
	
	@Override
	public boolean isValid() {
		return output != null;
	}
}
